package cn.AssassinG.ScsyERP.Statistics.facade.entity;

import cn.AssassinG.ScsyERP.Statistics.facade.enums.ObjectType;
import cn.AssassinG.ScsyERP.common.entity.BaseEntity;

import javax.persistence.Entity;

@Entity
public class InStorageYearlyStatistics extends BaseEntity {
    private static final long serialVersionUID = -930945697093272422L;
    //时间
    private int Year;
    //对谁统计
    private ObjectType objectType;
    private Long ObjectId;
    //统计项
    private Long InStorageAmount;

    public InStorageYearlyStatistics() {
        super();
    }

    public int getYear() {
        return Year;
    }

    public void setYear(int year) {
        Year = year;
    }

    public ObjectType getObjectType() {
        return objectType;
    }

    public void setObjectType(ObjectType objectType) {
        this.objectType = objectType;
    }

    public Long getObjectId() {
        return ObjectId;
    }

    public void setObjectId(Long objectId) {
        ObjectId = objectId;
    }

    public Long getInStorageAmount() {
        return InStorageAmount;
    }

    public void setInStorageAmount(Long inStorageAmount) {
        InStorageAmount = inStorageAmount;
    }

    @Override
    public String toString() {
        return "ProjectYearlyStatistics{" +
                "Year=" + Year +
                ", objectType=" + objectType +
                ", ObjectId=" + ObjectId +
                ", InStorageAmount=" + InStorageAmount +
                ", Id=" + Id +
                ", Corporation=" + Corporation +
                ", CreateTime=" + CreateTime +
                ", UpdateTime=" + UpdateTime +
                ", DeleteTime=" + DeleteTime +
                ", IfDeleted=" + IfDeleted +
                '}';
    }
}
